package com.pbc.gmp.dao;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.pbc.gmp.model.UserC;
import com.pbc.gmp.model.UserDetialInfo;
import com.pbc.gmp.model.basemodel.User;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author kjk
 * @since 2017-04-17
 */
@Component("userDao")
public interface UserMapper extends BaseMapper<User> {
    public List<User> selectUserListByOrgId(java.lang.Long id);
    public List<User> selectUserByLoginName(String LoginName);
    public UserC selectUserInfoDetailByUerId(java.lang.Long id);
    public List<User> selectUserList(Pagination page);
    public  List<UserDetialInfo> selectUserDetialInfoList();
    public  List<UserDetialInfo> selectUserDetialInfoListByOrgId(Long id);
    public  List<UserDetialInfo> selectUserDetialInfoListByDepId(Long id);
    public void updateEnableByUserId(Long id);
    public void updateUnableByUserId(Long id);
    public void updateDefaultPwdByUserId(Long id);
    public List<Map<String, Object>> selectUserDetialInfoPage(Pagination page, Map<String, Object> params);
    public List<UserDetialInfo> selectUserSimpleInfoListByDepId(Long id);




}